SQL Error

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '%20shot.url%20+%20'' OR CONCAT('http://www.pentaformazione.it', `from`) = 'http:' at line 1 SELECT * FROM `redirect` WHERE `from` = 'http://www.pentaformazione.it/public/js/'%20+%20shot.url%20+%20'' OR CONCAT('http://www.pentaformazione.it', `from`) = 'http://www.pentaformazione.it/public/js/'%20+%20shot.url%20+%20'' Execute() called at /var/www/vhosts/pentaformazione.it/httpdocs/public/lib/page.functions.php at line 302<br />

Fatal error: Call to a member function fetchrow() on boolean in /var/www/vhosts/pentaformazione.it/httpdocs/public/lib/page.functions.php on line 303